.TH std::experimental::pmr::polymorphic_allocator::allocate 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::pmr::polymorphic_allocator::allocate \- std::experimental::pmr::polymorphic_allocator::allocate

.SH Synopsis
   T* allocate( std::size_t n );  (library fundamentals TS)

   Allocates storage for n objects of type T using the underlying memory resource.
   Equivalent to

   return static_cast<T*>(this->resource()->allocate(n * sizeof(T), alignof(T)));.

.SH Parameters

   n - the number of objects to allocate storage for

.SH Return value

   A pointer to the allocated storage.

.SH See also

   allocate   allocates uninitialized storage using the allocator
   \fB[static]\fP   \fI(public static member function of std::allocator_traits<Alloc>)\fP
              deallocates memory
   deallocate \fI(public member function of std::experimental::pmr::memory_resource)\fP


.SH Category:
     * Noindexed pages
